package _9练习;

public abstract class Animal {
	String color;
	int age;
	
	
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Animal(String color, int age) {
		super();
		this.color = color;
		this.age = age;
	}
	
	public abstract void eat();
	
	public Animal() {
	}
}
